import request from '@/utils/request'
export function getAuthMenus(data) {
  return request({
    url: '/scene/sys/menu/getByUserId',
    method: 'get',
    params:data
  })
}

export function loadMenus(data) {
  return request({
    url: '/scene/sys/menu/findList',
    method: 'get',
    params:data
  })
}

export function getMenuOptionsTree() {
  return request({
    url: '/scene/sys/menu/getOptionsTree',
    method: 'get',
  })
}

export function saveMenu(data) {
  return request({
    url: '/scene/sys/menu/save',
    method: 'post',
    params:data
  })
}

export function deleteMenu(data) {
  return request({
    url: '/scene/sys/menu/delete',
    method: 'get',
    params:data
  })
}
